<?php
include_once dirname(__FILE__)."/../lang/error.php";
include_once dirname(__FILE__)."/../io/rows.php";
include_once dirname(__FILE__)."/../io/db.php";
class dairy extends rows{
 	function init(){
 		$this->tableName="sn_dairy";
 		$this->col["did"]   = new column("did",dataCheck::INTEGER);
 		$this->col["dtitle"] = new column("dtitle",dataCheck::STRING|dataCheck::NOTNULL);
 		$this->col["dtype"]  = new column("dtype",dataCheck::INTEGER|dataCheck::NOTNULL);
 		$this->col["dcontent"]  = new column("dcontent",dataCheck::STRING|dataCheck::NOTNULL);
 		$this->col["duid"]  = new column("duid",dataCheck::INTEGER|dataCheck::NOTNULL);
 		$this->col["dtime"]  = new column("dtime",dataCheck::INTEGER|dataCheck::NOTNULL);
 		$this->col["dpemission"]  = new column("dpemission",dataCheck::STRING|dataCheck::NOTNULL);
 		$this->col["dpwd"]  = new column("dpwd",dataCheck::STRING);
 		$this->col["dsendip"]  = new column("dsendip",dataCheck::STRING|dataCheck::NOTNULL);
 		$this->col["dclicks"]  = new column("dclicks",dataCheck::INTEGER);
 		$this->col["dstate"]  = new column("dstate",dataCheck::INTEGER|dataCheck::NOTNULL);
 	} 	 	
 }
